//
//  PywPayInfoModel.m
//  PywSdk
//
//  Created by Jade on 16/7/21.
//  Copyright © 2016年 zero. All rights reserved.
//

#import "PywPayInfoModel.h"

@interface PywPayInfoModel()
@end

@implementation PywPayInfoModel

#pragma mark - setter



- (void)setFinalAmount:(CGFloat)finalAmount
{
    if (finalAmount < 0) {
        finalAmount = 0;
    }
    _finalAmount = finalAmount;
}

- (NSMutableArray *)couponNumbers
{
    
    if (!_couponNumbers) {
        _couponNumbers = [[NSMutableArray alloc] init];
        
    }
    return _couponNumbers;
    
}

+ (BOOL)checkDevice:(NSString*)name
{
    NSString* deviceType = [UIDevice currentDevice].model;
    NSLog(@"deviceType = %@", deviceType);
    NSRange range = [deviceType rangeOfString:name];
    return range.location != NSNotFound;
}

@end
